<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script type="text/javascript" src="gouwuche.js"></script>
    <title>Document</title>
    <style>
        html,body{
            background-color: #ccc;
        }
        .top{
            width: 900px;
            margin: 20px auto;
            background-color: #fff;
            
        }
        .top h1{
            margin-left: 20px;
            color: #FF4200;
        }
        .input-search{
            border: 2px solid red;
            width: 400px;
            height: 30px;
        }
        .btn-search{
            border:  none;
            background-color: red;
            color: white;
            width: 55px;
            height: 36px;
            margin-top: 20px;
        }
        h1{
            float:left;
            margin-top: 20px;
        }
        .rt{
            float: right;
        }
        .search{
            margin-left: 413px;

        }
        .clearfix::before{
            display: block;
            content: "";
            clear: both;
        }
        .main{
            background-color: #fff;
        }
        .main h4{
            margin-left: 20px;
        }
        table {
            border-collapse: collapse;
            width: 850px;
            margin: 0 auto;
        }
        
        th,
        td {
            height: 50px;
            text-align: center;
        }
        table tr{
            margin-left: 20px;
            width: 850px;
            height: 100px;
            border: 1px solid #ccc;
            background-color: #FCFCFC;
        }
        .zd{
            float: right;
            margin-top: -30px;
            margin-right: 29px;
            border:none;
        }
        .btn-sort{
            width: 40px;
            height: 20px;
            color: #fff;
            background-color: #e4393c;
            border:none;
        }
        .btn-sort-reverse{
             width: 40px;
            height: 20px;
            color: #fff;
            background-color: #e4393c;
            border:none;
        }
        .func-box{
            
            height: 50px;
            margin:20px 0px 20px 25px; 
            padding-right: 15px;
        }
        .func-box input{
            border: 1px solid red;
            padding-left: 15px;
            height: 20px;
        }
        .btn-add-one{
            width: 40px;
            height: 24px;
            border: none;
            background-color: red;
            color: #fff;
        }
        .func-box label{
            margin-right: 11px;
        }
        .jiesuang{
            width: 60px;
            height: 40px;
            background-color: red;
            border: none;
            color: #fff;
            font-size: 16px;
        }
    </style>
</head>
<body>
    <div class="top clearfix">
        <h1>购物车</h1>
        <div class="search">
            <input type="text" class="input-search"/><button class="btn-search">搜索</button>
        </div>
        <div class="clearfix main">
            <h4>全部商品</h4>
            <div class="zd">
                <button class="btn-sort">正序</button>
                <button class="btn-sort-reverse">倒序</button>
            </div>
            <hr/>
            <div class="func-box">
                <label> 商品名字</label><input type="text" class="input-name" />
                <label> 商品价格</label><input type="text" class="input-price" />
                <label> 商品数量</label><input type="text" class="input-num" />
                <button class="btn-add-one">增加</button>
        </div>
            <table>
            <thead>
                <tr>
                    <th>
                        <input type="checkbox" class="select-all" />商品名字
                    </th>
                    <th>
                        商品价格
                    </th>
                    <th>
                        商品数量
                    </th>
                    <th>
                        总价
                    </th>
                    <th>
                        操作
                    </th>
                </tr>
            </thead>
            <tbody>


            </tbody>
            <tfoot>
                <tr>
                    <th colspan=5><button class="jiesuang">结算</button>:0</th>
                    <tr>
            </tfoot>
        </table>
        </div>
    </div>
</body>
</html>